package com.shopping.mall.core.module.mainPage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

/**
 * MainPage实体类
 *
 * @author zzy
 * @date 2021-09-02
 */
@Data
@TableName("main_page")
public class MainPage {

    public interface insert {
    }

    public interface update {
    }

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "主轮播图")
    private String mainSlideshows;

    @ApiModelProperty(value = "底下那几个图片(也可以是轮播图)")
    private String secondaryImages;

    @ApiModelProperty(value = "侧边两个图片")
    private String sideImages;

    @ApiModelProperty(value = "左边链接")
    private String leftText;

    @ApiModelProperty(value = "右边链接")
    private String rightText;

    @ApiModelProperty(value = "示例的商品id")
    private String exampleGoodsId;

    private String selfDefineModules;

    private String logo;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp createAt;

    public MainPage() {
    }

    public MainPage(String mainSlideshows, String secondaryImages, String sideImages, String leftText, String rightText, String exampleGoodsId, String selfDefineModules, String logo) {
        this.mainSlideshows = mainSlideshows;
        this.secondaryImages = secondaryImages;
        this.sideImages = sideImages;
        this.leftText = leftText;
        this.rightText = rightText;
        this.exampleGoodsId = exampleGoodsId;
        this.selfDefineModules = selfDefineModules;
        this.logo = logo;
    }
}
